package com.yurun.employeemodule.service;

import com.yurun.commonapi.api.CommonResult;
import com.yurun.commonapi.pojo.Employee;
import org.springframework.stereotype.Service;

import java.math.BigInteger;
import java.util.List;

/**
 * @author lihao
 * @mail lihaohaocn@gmail.com
 * @Date 2021/8/4 10:14 下午
 */
@Service
public interface EmployeeService {

    Employee getEmployeeById(BigInteger employeeId);

    List<Employee> getBranchEmployeeInfo(BigInteger organizationId, BigInteger branchId);

    List<Employee> getAllEmployeeInfo(BigInteger organizationId);

    List<Employee> getEmployeeList(String keyword, BigInteger branchId, BigInteger organizationId);

    BigInteger getEnumId(String placeNum);

    int delEmployeeById(BigInteger employeeId);

    CommonResult addEmployee(Employee employee, String organizationId);

    int editEmployee(Employee employee);

    // 重置员工密码
    CommonResult resetEmployeePwd(BigInteger employeeId);

    CommonResult editEmployeePwd(BigInteger employeeId, String employeePwd, String newEmployeePwd);

    CommonResult getOneClassroomInfo(BigInteger classroomId);
}
